<template>
  <a-space>
    <a-button @click="emit('reload')">刷新</a-button>
    <a-button type="primary" @click="emit('add')">新增</a-button>
    <a-button danger @click="emit('del')" :disabled="delDisabled">删除</a-button>
    <a-form layout="inline">
      <slot></slot>
    </a-form>
    <a-button type="primary" @click="emit('search')">搜索</a-button>
    <a-button @click="emit('reset')">重置</a-button>
  </a-space>
</template>

<script setup>

const emit = defineEmits(['reload', 'add', 'del', 'search', 'reset'])

defineProps(['delDisabled'])


</script>